<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>用户注册</title>
<%@include file="../core/head.jsp"%>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="登录超时，重新登录">
	<link rel="stylesheet" href="${ctx}/css/core.css" type="text/css"></link>
	<link rel="stylesheet" href="${ctx}/css/buttons.css" type="text/css"></link>
	<link rel="stylesheet" href="${ctx}/css/table.css" type="text/css"></link>
	
  </head>
  <body>
  <c:choose>
  <c:when test="${user_json ne null}">
 		<script type="text/javascript">
 		 if(parent&&parent.$.AjaxAuthFilter.cleckOver){
  			parent.$.AjaxAuthFilter.cleckOver(${user_json});
 		 }
 		</script>
  	</c:when>
  	<c:otherwise>
  	<div align="center">
		<s:form action="ajaxLogin" id="ajaxLoginForm" method="post" theme="simple" >
			<table class="table">
				<tr><th class="left">用户名：</th></tr>
				<tr><td><input type="text"  name="user.username" /> </td></tr>
				
				<tr><th class="left">密码：</th></tr>
				<tr><td><input type="password"    name="user.password"/>  </td></tr>
				
				<tr><td class="left"><s:actionerror cssClass="error"/>  </td></tr>
				<tr><td><input type="submit"   class="button green" style="width: 280px;height: 34px ; padding:5px; text-align: center;" value="登录"/> </td></tr>
			</table>
		</s:form>
  	</div>
	</c:otherwise>
  </c:choose>
  </body>
</html>
